package com.nd.qa.shareplate.service;

import java.util.HashMap;
import java.util.List;
import com.nd.qa.shareplate.model.ApkInfo;

public interface ApkService {

	/**
	 * 查询apk信息
	 * @param userId
	 * @return
	 */
	public List<HashMap<String, Object>> queryApkById(HashMap<String, Object> paramMap) throws Exception;
	/**
	 * 查询所有的apk信息
	 * @param apkInfo
	 * @return
	 */
	public List<HashMap<String, Object>> queryTotalApk(ApkInfo apkInfo) throws Exception;
	/**
	 * 上传apk
	 * @param apkInfo
	 */
	public void insertApkInfo(ApkInfo apkInfo) throws Exception;
	/**
	 * 删除apk
	 * @param apkInfo
	 */
	public void delAPKInfo(ApkInfo apkInfo) throws Exception;
	/**
	 * {@link Test}
	 * @return
	 */
	public List<ApkInfo> queryApkByUserId(ApkInfo apkInfo);
	
	/**
     * 根据apkId更新apk的dentryId
     * @param apkId，dentryId
     */
    public void updateAPKInfo(Integer apkId,String dentryId) throws Exception;
    
    /**
     * 根据apkId更新apk的uploadstatus
     * @param apkId
     */
    public void updateAPKUploadStatus(Integer apkId,Integer uploadStatus) throws Exception;
}
